from linuxserver/plex:latest

ARG PLEX_VERSION=1.40.4.8679-424562606

RUN https_proxy=socks5://192.168.31.1:7890 curl -o plex.deb https://downloads.plex.tv/plex-media-server-new/${PLEX_VERSION}/debian/plexmediaserver_${PLEX_VERSION}_amd64.deb && dpkg -i plex.deb && rm -rf plex.deb
COPY --from=gaoyb7/rclone:latest /usr/local/bin/rclone /usr/local/bin

RUN apt-get update -y && apt-get install -y fuse3 mysql-client
COPY root/ /